<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
    margin: 0;
    padding: 0;
}
        .box{
            /* width: 970px; */
            height: 40px;
            border-top: 3px solid #ff8500;
            border-bottom: 1px solid #ccc;
        }
        .box>a{text-decoration: none;
            color: #6a6b66;
            display: inline-block;
            font-size: 12px;
            /* 不设置高度 a是行内块元素宽度由内容撑开 */
            width: 80px;
            /* 内边距撑开内容 */
            /* padding: 0 20px; */
            height: 40px;
            line-height: 40px;
            text-align: center;
        }
        .box>a:hover{
            color: #ff8500;
            background-color: #ccc;

        }


    </style>
</head>
<body>
    <div class="box">
        <a href="">新浪导航</a>
        <a href="">新浪导航</a>
        <a href="">新浪导航</a>
        <a href="">新浪导航</a>
    </div>
    
</body>
</html>